home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: Auge 4000
/
Auge 4000 #47 (1990-06-22)(Amiga User Gruppe Einzugsgebiet 4000).zip
/
Auge 4000 #47 (1990-06-22)(Amiga User Gruppe Einzugsgebiet 4000).adf
/
ARP-DOCS1.3
/
ARun
< prev
next >
Wrap
Text File
|
1990-06-22
|
4KB
|
133 lines
ARun(V1.3) ARP User's Manual ARun(V1.3)
NAME
ARun - Run a process in the background without a shell.
SYNOPSIS
ARun Program_CommandLine/... </k >/k NOIO/s STACK/k PRI/k
DESCRIPTION
ARun starts up a background process, but does not use a
shell to do so. (Compare this with the manual page for Run).
This incurs much less overhead, since the shell/cli uses
additional memory not required by many processes. However,
if you require the facilities of the shell (such as Aliasing
or Scripting), you should use the Run command instead.
Although the V1.3 ARun will handle all commands (including
the Commodore BCPL distribution) it is probably best used
to start background processes that will run for your entire
session, for example, a hot-key utility. ARun makes it
simple to get the environment you want with as little
overhead as possible.
OPTIONS
< > These set the default input and output files for the
background process. Note that you must separate the
bracket characters from the filename by at least one
space.
NOIO This runs the background process with no default output
channels. This is useful for spawning a process from a
CLI which you will want to close later, but still have
the background process running. Without the NOIO
option, the CLI window will not close until the last
process launched from that CLI has terminated. Care
must be used with this option, since many programs need
default file handles to operate correctly.
STACK
Sets the stack for the process. If the program file
begins with an ARP Resident Header, this will be
ignored.
PRI Sets the process priority.
EXAMPLE
Launch a program with priority -5, stacksize of 2000 and
noio:
ARun Funkeys NOIO STACKSIZE 2000 PRI -5
The same process under AmigaDOS would be accomplished in
this way:
Page 1 (printed 4/28/89)
ARun(V1.3) ARP User's Manual ARun(V1.3)
Stack 4000 ; set the stack ... not safe below 4000!
ChangeTaskPri -5 ; set the priority, things slow down here!
Run <NIL: >NIL: MyProgram Mycommands ; launch
ChangeTaskPri 0 ; reset the priority
Stack 10240 ; reset the stack.
CAUTIONS
Don't try to start execute scripts with ARun, it won't work.
These need a shell, so you must use Run with Execute.
Due to the use of the argument parser in ARun (but not in
Run), you may sometimes need to escape quoted arguments for
the child. Here is an example:
ARun Command "\"Quoted Arg\""
Where the \ represents the current escape character (see
Set for a discussion of the escape character). The outer
quotes are for ARun, and the Escaped Quotes tell ARun (or
the argument parser) to send the argument to the subprocess
as a quoted string.
SEE ALSO
Run Set
Page 2 (printed 4/28/89)